Skip to content

Fix: Query param deepObject return without assign on !required#68

Merged
mromaszewicz merged 3 commits intooapi-codegen:mainfrom
voro015:fix/query-optional-deepObject
Mar 18, 2026
Merged

Fix: Query param deepObject return without assign on !required#68
mromaszewicz merged 3 commits intooapi-codegen:mainfrom
voro015:fix/query-optional-deepObject

Conversation

@voro015
Copy link
Contributor

@voro015 voro015 commented May 7, 2025

Updated BindQueryParameter to return error if query param was not provided but was set as required
Updated UnmarshalDeepObject to skip value assign if query param was not provided and not required

Fixes #67

@voro015 voro015 requested a review from a team as a code owner May 7, 2025 04:44
@artemvoroninepg
Copy link

@jamietanna sorry for a direct ping, it's been almost a year, may I ask for your review?

@mromaszewicz mromaszewicz added the bug Something isn't working label Mar 18, 2026
Exercise the required and optional code paths for deepObject-style
query parameters to verify no unintended side effects from PR oapi-codegen#68.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@mromaszewicz
Copy link
Member

Thanks for doing this, and sorry about the long delays.

@mromaszewicz mromaszewicz merged commit fd63554 into oapi-codegen:main Mar 18, 2026
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Query param with deepObject does not respect if param is required

3 participants